<div id="site-header">


    <form id="loginformitem" name="loginformitem" action="<?=HTTPS?>/account/submit"
          method="post">
        
        <?php if($_SESSION['login']['error_message']) { ?>
        <div id="loginerrorfieldwrapper">
            <div id="loginerrorfield">
                <div><?=$_SESSION['login']['error_message']?></div>
            </div>
        </div>
        <?php } ?>
        
        <?php if($_SESSION['login']['error_captcha'] >= 4) { ?>
        <script type="text/javascript">
            Utils.showRecaptcha("login-recaptcha", "[captcha_key]");
        </script>

        <div id="login-recaptcha">
            <div id="login-recaptcha-left">
                <div id="recaptcha_image"></div>
                <div id="login-recaptcha-left-reload"><a id="recaptcha_reload" href="#" style="color: white;">%captcha_reload%</a>
                </div>
                <div id="login-recaptcha-left-typewords"></div>
                <div id="login-recaptcha-left-input">
                    <input type="text" tabindex="2" name="recaptcha_response_field" id="recaptcha_response_field">
                </div>
            </div>
        </div>
        <?php } ?>
        

        <div style="clear: both;"></div>

        <div id="site-header-content">

            <div id="habbo-logo"></div>

            <div id="login-form">


                <div id="login-form-email">
                    <label for="login-username"
                           class="login-text">%input_mail%</label>
                    <input tabindex="3" type="text" class="login-field" name="credentials.username" id="login-username"
                           value="<?=$_GET['username']?>" maxlength="48"/>
                    <input tabindex="6" type="checkbox" name="_login_remember_me" id="login-remember-me"
                           value="true"/>
                    <label for="login-remember-me">%input_remember%</label>

<div id="landing-remember-me-notification" class="bottom-bubble" style="display:none;">
	<div class="bottom-bubble-t"><div></div></div>
	<div class="bottom-bubble-c">
                %input_remember_msg%
	</div>
	<div class="bottom-bubble-b"><div></div></div>
</div>

                </div>

                <div id="login-form-password">
                    <label for="login-password" class="login-text">%input_password%</label>
                    <input tabindex="4" type="password" class="login-field" name="credentials.password"
                           id="login-password" maxlength="32"/>

                    <div id="login-forgot-password">
                        <a href="#" id="forgot-password"><span>%href_forgot%</span></a>
                    </div>
                </div>

                <div id="login-form-submit">
                    <input type="submit" value="Login" class="login-top-button"
                           id="login-submit-button"/>
                    <a href="#" tabindex="5"
                       id="login-submit-new-button"><span>%button_login%</span></a>
                </div>

            </div>

            <div id="rpx-login">
                <div>
<div id="fb-root"></div>
<script type="text/javascript">
    window.fbAsyncInit = function() {
        Cookie.erase("fbsr_[facebook_appId]");
        FB.init({appId: '[facebook_appId]', status: true, cookie: true, xfbml: true});
        $(document).fire("fbevents:scriptLoaded");

    };
    window.assistedLogin = function(FBobject, optresponse) {
        
        Cookie.erase("fbsr_[facebook_appId]");
        FBobject.init({appId: '[facebook_appId]', status: true, cookie: true, xfbml: true});

        permissions = 'user_birthday,email';
        defaultAction = function(response) {

            if (response.authResponse) {
                fbConnectUrl = "/facebook?connect=true";
                Cookie.erase("fbhb_val_[facebook_appId]");
                Cookie.set("fbhb_val_[facebook_appId]", response.authResponse.accessToken);
                Cookie.erase("fbhb_expr_[facebook_appId]");
                Cookie.set("fbhb_expr_[facebook_appId]", response.authResponse.expiresIn);
                window.location.replace(fbConnectUrl);
            }
        };

        if (typeof optresponse == 'undefined')
            FBobject.login(defaultAction, {scope:permissions});
        else
            FBobject.login(optresponse, {scope:permissions});

    };

    (function() {
        var e = document.createElement('script');
        e.async = true;
        e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
        document.getElementById('fb-root').appendChild(e);
    }());
</script>

<a class="fb_button fb_button_large" onclick="assistedLogin(FB); return false;">
    <span class="fb_button_text">%login_facebook%</span>
</a>
                </div>

                <div>

<div id="rpx-signin">
    <a class="rpxnow" onclick="return false;" href="https://login.habbo.com/openid/v2/signin?token_url=http%3A%2F%2Fwww.habbo.com/rpx">More ways to login</a>
</div>                </div>

            </div>

<noscript>
<div id="alert-javascript-container">
    <div id="alert-javascript-title">
       %js_msg1%
    </div>
    <div id="alert-javascript-text">
       %js_msg2%
    </div>
</div>
</noscript>

<div id="alert-cookies-container" style="display:none">
    <div id="alert-cookies-title">
        %cookie_msg1%
    </div>
    <div id="alert-cookies-text">
        %cookie_msg2%
    </div>
</div>
<script type="text/javascript">
    document.cookie = "habbotestcookie=supported";
    var cookiesEnabled = document.cookie.indexOf("habbotestcookie") != -1;
    if (cookiesEnabled) {
        var date = new Date();
        date.setTime(date.getTime()-24*60*60*1000);
        document.cookie="habbotestcookie=supported; expires="+date.toGMTString();
    } else {
        $('alert-cookies-container').show();
    }
</script>

            <script type="text/javascript">
                HabboView.add(function() {
                    LandingPage.init();
                    if (!LandingPage.focusForced) {
                        LandingPage.fieldFocus('<?=($_GET["focus"] ? $_GET["focus"] : "login-username")?>');
                    }
                });
            </script>

        </div>

    </form>

</div>

<div id="fp-container">
    <div id="content">
    <div id="column1" class="column">
			     		
				<div class="habblet-container ">		
	
						<div style="width: 890px; margin: 0 auto">
        <div id="tagline">%msg_tag%</div>
</div>

<div id="frontpage-image-container">

    <div id="join-now-button-container">
        <div id="join-now-button-wrapper">
            <div class="join-now-alternative">
                <a href="/quickregister/start" class="newusers" id="newusers" onclick="startRegistration(this); return false;">%button_register_msg1%</a>
            </div>
            <div class="join-now-button">
                <a class="join-now-link" id="register-link" href="/quickregister/start" onclick="startRegistration(this); return false;"> 
                    <span class="join-now-text-big">%button_register_msg2%</span>
                    <span class="join-now-text-small">%button_register_msg3%</span>
                </a>
                <span class="close"></span>
            </div>
            <div class="join-now-alternative">
                <a class="fbicon" id="fbicon" href="#" onclick="assistedLogin(FB); return false;">
                %button_facebook%
                </a>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        function startRegistration(elem) {
            targetUrl = elem.href;
            if (typeof targetUrl == "undefined") {
                targetUrl = "/quickregister/start";
            }
            window.location.href = targetUrl;
        }
    </script>
    <div id="people-inside">
        <b><span><span class="stats-fig"><?=$users->onlineUsers()?></span> %online_players%</span></b>
        <i></i>
    </div>

    <a href="/quickregister/start" id="frontpage-image" style="background-image: url('//habbo.hs.llnwd.net/c_images/Frontpage_images/landing_generic_1203xx_1.png')" onclick="startRegistration(this); return false;"></a>

</div>

						
							
					
				</div>
				<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
			 

</div>
<!--[if lt IE 7]>
<script type="text/javascript">
Pngfix.doPngImageFix();
</script>
<![endif]-->
<div id="footer" class="new_and_improved">
	<p class="footer-links"><a href="http://help.habbo.com">Customer Support</a> l <a href="https://help.habbo.com/forums/144065-information-for-parents">Parents</a> l <a href="https://help.habbo.com/entries/20106178-privacy-policies-terms-of-use" target="_new">Terms of Use & Privacy Policy</a> l <a href="https://help.habbo.com/entries/278050-infringements-policy" target="_new">Infringements</a> l <a href="http://www.habbo.com/safety/habbo_way" target="_new">Habbo Way</a> l <a href="http://www.habbo.com/safety/safety_tips">Safety</a> l <a href="mailto:advertising.com@sulake.com" target="_new">For Advertisers</a></p>
    <div id="age-recommendation"></div>
    <div id="sulake-logo"><a href="http://www.sulake.com"></a></div>
	<p class="copyright">© 2004 - 2012 Sulake Corporation Oy. HABBO is a registered trademark of Sulake Corporation Oy in the European Union, the USA, Japan, the People's Republic of China and various other jurisdictions. All rights reserved.</p>


</div>
    </div>
</div>


<script type="text/javascript">
if (typeof HabboView != "undefined") {
	HabboView.run();
}
</script>
</body>
</html>
<?php unset($_SESSION['login']['error_message']); ?>